package com.example.aftersales.service;

import com.example.aftersales.utils.Result;
import com.example.aftersales.entity.Announcement;

import java.util.List;

public interface AnnouncementService {
    Result<List<Announcement>> getAllAnnouncements();
    Result<Announcement> getAnnouncementById(Long id);
    Result<String> addAnnouncement(Announcement announcement);
    Result<String> updateAnnouncement(Announcement announcement);
    Result<String> deleteAnnouncement(Long id);
}